﻿using System;

namespace DelegatesAndEventsTest
{
    public class PropertyChangedEventArgs : EventArgs
    {
        string propertyChange;
        object oldValue;
        object newValue;

        public string PropertyChange
        {
            get
            {
                return propertyChange;
            }
            set
            {
                propertyChange = value;
            }
        }

        public object OldValue
        {
            get
            {
                return oldValue;
            }
            set
            {
                oldValue = value;
            }
        }

        public object NewValue
        {
            get
            {
                return newValue;
            }
            set
            {
                newValue = value;
            }
        }

        public PropertyChangedEventArgs(string propertyChange, object oldValue, object newValue)
        {
            this.propertyChange = propertyChange;
            this.oldValue = oldValue;
            this.newValue = newValue;
        }
    }
}